<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        ::after{
            width: 50px;
            height: 50px;
            display: inline-block;
            font-size: 10px;
            line-height: 50px;
            text-align: center;
        }
        #game {
            margin: 0 auto;
            position: relative;
        }
        #game .item{
            width: 50px;
            height: 50px;
            box-sizing: border-box;
            position: absolute;
        }
        #game .correctBox{
            border: 1px solid greenyellow;  
        }
        #game .player{
            background: hotpink;
            border-radius: 20px;
        }
        #game .wall{
            background: burlywood;
        }
        #game .box{
            background: rgb(235, 139, 13);
        }
        #game .box::after{
            content: "箱子";
            color: yellow;
        }
        #game .player::after{
            content: "推箱人";
            color: yellow;
        }
        #game .wall::after{
            content: "墙";
            color: #fff;
        }
        #game .correctBox::after{
            content: "正确区域";
            color: greenyellow;
        }
        .gameOver{
            width: 400px;
            height: 200px;
            border: 1px solid black;
            position: absolute;
            left: calc(50% - 200px);
            top: 20%;
            z-index: 1;
            background-color: darkgoldenrod;
            box-shadow: inset 0 0 50px,
                        0 0 35px;
            opacity: 0.7;
            text-align: center;
            line-height: 200px;
            font-size: 30px;
            text-shadow: 0 0 20px;
            user-select: none;
            display: none;
        }
        div.gameOver.active{
            display: block;
        }
        .gameOver::after{
            content: "下一局";
            position: absolute;
            width: 200px;
            height: 100px;
            left:calc(50% - 100px);
            top: calc(50% - 50px);
            transition: all 1s ease-in-out;
            overflow: hidden;
            line-height: 100px;
            opacity: 0;
            /* box-shadow: 0 0 50px 20px; */
        }
        div.gameOver:hover::after{
            transform: scale(2);
            left: calc;
            box-shadow: 0 0 50px 20px,
                        inset 0 0 50px 10px;
            background-color: #0ff;
            opacity: 1;
            cursor: pointer;
        }
        div.gameOver:active::after{
           box-shadow: inset 1px -1px 20px 1px #fff,
                       inset -1px 1px 20px 1px #fff;
        }
    </style>
</head>
<body>
    <div id="game"></div>
    <div class="gameOver">successful!!!
        <!-- <button class="nextGame">下一局</button> -->
    </div> 
    
    <script src="./src/index.js" type="module"></script>
</body>
</html>